use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    let strs = input_str.split(',').collect::<Vec<&str>>();
    let mut record = HashSet::new();
    let mut ans: usize = 0;
    strs.iter().for_each(|&s| {
        if !record.contains(s) {
            ans += 1;
            record.insert(s);
        }
    });
    ans
}
